cmake_minimum_required(VERSION 3.7)
project(threaddemo)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_FIND_ROOT_PATH /home/yan/Downloads/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2 )
set(CMAKE_CXX_COMPILER /home/yan/Downloads/staging_dir/toolchain-mipsel_24kec+dsp_gcc-4.8-linaro_uClibc-0.9.33.2/bin/mipsel-openwrt-linux-g++)



set(SOURCE_FILES main.cpp)
add_executable(threaddemo ${SOURCE_FILES})
TARGET_LINK_LIBRARIES(threaddemo pthread)